//判断登录未成功的状态
if (!sessionStorage.getItem("token")) {
    window.location.href = "./login.html";
}


//更新用户基本信息
window.userInfo = function () {
    getUserInfoAPI({}, function (res) {
        $(".username").html(res.data.data.nickname)
    })
}
userInfo()

